const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const ClassifySchema = new Schema({
    name: {
        type: String,
        require: true
    },
    createTime: {
        type: Date,
        default: Date.now
    },
    desc: {
        type: String,
        default: '一个无描述的分类...'
    }
});

module.exports = mongoose.model('Classify', ClassifySchema);
